<?php get_header();?>
<div id="content">
<div id="mcontent">
<?php if(is_category()):?>
<?php if( '' != (category_description($category))) {?><div class="path"><?php echo category_description();?></div><?php }?>
<?php elseif(is_tag()):?>
<?php if('' != (tag_description())) {?><div class="path"><?php  echo tag_description();?></div><?php }?>
<?php endif;?>
<?php if( have_posts() ): while( have_posts() ): the_post();?>
<div class="entry">
<h2 class="entry-title"><a href="<?php the_permalink();?>" rel="bookmark" title="Permalink to <?php the_title();?>"><?php the_title();?></a></h2>
<div class="entry-content">
<?php the_excerpt();?>
</div>
<div class="entry-etc">
<span class="entry-link"><?php echo substr(get_permalink(),7);?></span>
<span>&nbsp;-&nbsp;</span>
<span class="entry-date"><?php echo time_since(get_the_time('U'));?></span>
<span>&nbsp;-&nbsp;</span>
<span><?php the_category(',');?></span>
<span>&nbsp;-&nbsp;</span>
<span><?php comments_popup_link('暂无评论', '1条评论', '%条评论' ); ?>
<?php if(function_exists('the_views')) { ?></span> <span>&nbsp;-&nbsp;</span>
<span><?php the_views(); } ?></span>
</div>
</div>
<?php endwhile;?>
<?php endif;?>
<div class="clear"></div>
<div class="page_navi">
<?php pagenavi(9); ?>
</div>
</div>
<div id="lcontent">
<?php get_template_part('sidebar_l','index');?>
</div>
<div id="rcontent">
<?php get_template_part('sidebar_r','index');?>
</div>
</div>
<?php get_footer();?>